<template>
  <el-container class="layout-container">
    <el-aside width="200px">
      <div class="logo">AI Agent 管理</div>
      <el-menu
        :default-active="$route.path"
        router
        background-color="#2a5085"
        text-color="#e6edf7"
        active-text-color="#93c5fd"
      >
        <el-menu-item index="/models">
          <el-icon><setting /></el-icon>
          <span>模型管理</span>
        </el-menu-item>
        <el-menu-item index="/tools">
          <el-icon><tools /></el-icon>
          <span>工具管理</span>
        </el-menu-item>
        <el-menu-item index="/agents">
          <el-icon><user /></el-icon>
          <span>Agent管理</span>
        </el-menu-item>
        <el-menu-item index="/users">
          <el-icon><avatar /></el-icon>
          <span>用户管理</span>
        </el-menu-item>
        <el-menu-item index="/hot-tools">
          <el-icon><star /></el-icon>
          <span>热门工具</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    
    <el-container>
      <el-header>
        <div class="spacer"></div>
        <el-dropdown>
          <span class="user-dropdown">
            管理员 <el-icon><arrow-down /></el-icon>
          </span>
          <template #dropdown>
            <el-dropdown-menu>
              <el-dropdown-item>退出登录</el-dropdown-item>
            </el-dropdown-menu>
          </template>
        </el-dropdown>
      </el-header>
      
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup>
</script>

<style scoped>
.layout-container {
  height: 100vh;
}

.el-aside {
  background: #2a5085;
  color: #e6edf7;
}

.logo {
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #e6edf7;
  border-bottom: 1px solid rgba(147, 197, 253, 0.3);
}

.el-header {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.spacer {
  flex: 1;
}

.user-dropdown {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.el-main {
  background: #f5f7fa;
  padding: 20px;
}
</style>

